# "".count('')  ""中有（）个‘’
# "".join(')    将''中用""拼接
# "".find('')
# a =1
# print(a,id(a))
# a =a+1
# print(a,id(a))


# l=['a',1,2,'b']
# for e in l:
#     print(e)

#  如何判定一个字符串或者列表是否对称  s1=s0[::-1]  s1为列表s0的翻转列表
# abcdefedcba  [1,2,3,4,5,4,3,2,1]
# s0 = "abcdefedcba"
# lenth=len (s0)
# for i in range(lenth//2):
#     print(s0[i],s0[lenth-1-i])
#     if s0[i]!=s0[lenth-1-i]:
#         print('no')
#         break
# else:
#      print('yes')

# l0 = [1, 2, 3, 5, 4, 6, 7, 1, 1, 1, 1, 1]

# 找元素对应的索引
# r=l0.index(6)
# print(r)

# 统计列表中1出现的次数
# print(l0.count(1))


# 插入
# 末尾插入
# l0.append('wo')
# print(l0)

# 指定位置插入

# s='hello wrold'
# print(s[1:6:2])
# print(s[-11:-1:1])
# print(s[::-2])
# print(s[::3])




t0=(1,2,3.14,'hello',True,None,1,1,1,1)
for i in range(1,6,1):
    print(t0[i],end='\t')
l0=[1,2,4,3,'a','t']
print()
for i in range(1,5,2):
    print(l0[i],end='\t')










# print(t0.index(1))
# print(t0.count(1))
# # print(id(1))
# print(id(True))